import React, { useState } from 'react'
import {useNavigate,Link,Routes,Route,useInRouterContext,useNavigationType,useOutlet,Outlet} from 'react-router-dom'
export default function Page6() {
 const [count,setCount]=useState(0)
 const ii= useOutlet()
 console.log(ii);
  return (
   <div>
    <Link to='12'>子路由</Link>
    {/* <Routes>
        <Route context={[count,setCount]} path='12' element={<UseOutletContext></UseOutletContext>}></Route>
    </Routes> */}
    <Outlet context={[count,setCount]}></Outlet>
   </div>
  )
}
